package org.weed.remote.service;

public class EventService {
	// 0000     0      00    0
	//          Button Event Type
	public static final int TYPE_MONITOR = 0;
	public static final int TYPE_MOUSE = 1;
	
	public static final int MOVE = 0;
	public static final int PRESS = 1;
	public static final int RELEASE = 2;
	public static final int CLICK = 3;
	
	public static final int RIGHT = 0;
	public static final int LEFT = 1;
	
	public static byte getType(byte command) {
		return (byte) (command & 0x01);
	}
	
	public static byte getMouseEvent(byte command) {
		return (byte) ((command >> 1) & 0x03);
	}
	
	public static byte getMouseButton(byte command) {
		return (byte) ((command >> 3) & 0x01);
	}

}
